/**
 * Copyright 2025 Huawei Technologies Co., Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef MINDSPORE_CCSRC_PYBIND_API_PYNATIVE_PYNATIVE_API_H_
#define MINDSPORE_CCSRC_PYBIND_API_PYNATIVE_PYNATIVE_API_H_

#include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include "include/utils/visible.h"

namespace py = pybind11;
namespace mindspore {
namespace pynative {
PYNATIVE_EXPORT void RegPyNativeExecutor(const py::module *m);
PYNATIVE_EXPORT void RegisterPyBoostFunction(py::module *m);
PYNATIVE_EXPORT void RegisterCustomizeFunction(py::module *m);
PYNATIVE_EXPORT void RegisterCellBackwardHookFunction(py::module *m);
PYNATIVE_EXPORT void RegisterDetachFunction(py::module *m);
PYNATIVE_EXPORT void RegisterFunctional(py::module *m);
namespace distributed {
void RegReducer(py::module *m);
}
}  // namespace pynative

namespace pynative::autograd {
PYNATIVE_EXPORT void RegBackwardFunction(py::module *m);
PYNATIVE_EXPORT void RegBackwardNode(py::module *m);
PYNATIVE_EXPORT void RegFunctionBase(py::module *m);
}  // namespace pynative::autograd

namespace tensor {
void RegMetaTensor(const py::module *m);
void RegCSRTensor(const py::module *m);
void RegCOOTensor(const py::module *m);
void RegRowTensor(const py::module *m);
void RegMapTensor(const py::module *m);
void RegPyTensor(py::module *m);
}  // namespace tensor

void RegTensorDoc(py::module *m);
void RegStorage(py::module *m);
void RegPyNativeModule(py::module *m);
}  // namespace mindspore

#endif  // MINDSPORE_CCSRC_PYBIND_API_PYNATIVE_PYNATIVE_API_H_
